package com.glp.work.flow.mapper;

import com.glp.work.flow.dto.ProcessAndModelVo;
import com.glp.work.flow.dto.SendEmailSituationDTO;
import com.glp.work.flow.dto.WfPlatformDefDTO;
import com.glp.work.flow.pojo.WfPlatformDef;

import com.glp.work.flow.response.WfOrderResultDTO;
import com.glp.work.flow.workflow.plugin.flowable.dto.ProcessAndModelDto;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/** 
* 业务系统唯一标识定义
* @author  pengjia 
* @version 2020年5月28日 下午4:49:52 
*/
public interface WfPlatformDefMapper extends Mapper<WfPlatformDef> {

    List<WfPlatformDefDTO> wpfDefinsertFormCase();

/*    int appIdlationOrderToDoTasks(String appId,String procDefKey);

    int appIdOrderDoneTasks(String appId,String procDefKey);*/

    List<WfPlatformDef> findAuthorizationByKey(String key);

    List<String> findActRuKey(String key);

    Long findKeyOrder(String key,String appId);

    List<ProcessAndModelVo> queryProcessAndModel2(ProcessAndModelDto processAndModelDto);

    /***
     * @description : 各个平台Email发送情况
     * @params : []
     * @returns : java.util.List<com.glp.work.flow.dto.SendEmailSituationDTO>
     * @author : 郭永伟
     * @date : 2020/12/16
    */
    List<SendEmailSituationDTO> getSendEmailSituation();

    /**
     * @description : 获取应用对应的流程
     * @author : 郭永伟 
     * @params [appId]     
     * @date : 2021/2/22
    */
    List<ProcessAndModelVo> queryAPPProcess(@Param("appId") String appId);

    /*String queryModelName();*/
}
